﻿<classes>
  <class name="Invoice" assembly="TestCDefSolution.BO" table="tbInvoice" displayName="Invoice">
    <property name="InvoiceID" type="Guid" readWriteRule="WriteNew" databaseField="InvoiceIDDBColName" compulsory="true" 
		displayName="Invoice ID Display Name" description="Prop Invoice ID Description" />
    <primaryKey>
      <prop name="InvoiceID" />
    </primaryKey>
    <relationship name="InvoiceItems" type="multiple" relatedClass="InvoiceItem" 
		reverseRelationship="Invoice" relatedAssembly="TestCDefSolution.BO">
      <relatedProperty property="InvoiceID" relatedProperty="InvoiceID" />
    </relationship>
  </class>
  <class name="InvoiceItem" assembly="TestCDefSolution.BO" displayName="Invoice Item">
    <property name="InvoiceItemID" type="Guid" readWriteRule="WriteNew" compulsory="true" />
    <property name="InvoiceID" type="Guid" readWriteRule="WriteNew" compulsory="true" />
    <primaryKey>
      <prop name="InvoiceItemID" />
    </primaryKey>
    <relationship name="Invoice" type="single" relatedClass="Invoice" reverseRelationship="InvoiceItems" relatedAssembly="TestCDefSolution.BO" deleteAction="DoNothing">
      <relatedProperty property="InvoiceID" relatedProperty="InvoiceID" />
    </relationship>
  </class>
</classes>